/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package org.jackysoft.workflow.util;

import java.util.Map;

import org.jackysoft.entity.WorkflowRunner;
import org.jackysoft.service.OsVariableService;
import org.jackysoft.workflow.Register;
import org.jackysoft.workflow.WorkflowContext;
import org.jackysoft.workflow.WorkflowException;

/**
 * This is a register, which helps logging using commons-logging. It wraps a
 * Logger instance which is linked to the "OSWorkflow/<workflow_name>/<id>"
 * category
 * 
 * Following optional arguments available:
 * <ul>
 * <li>Category="OSWorkflow" - change the name of the log category other than
 * "OSWorkflow"</li>
 * </ul>
 * 
 * 
 * If you register this class as "Logger", then you may use it from a Beanshell
 * script like:
 * 
 * <pre>
 * logger = transientVars.get(&quot;logger&quot;);
 * logger.debug(&quot;hello logger!&quot;);
 * </pre>
 * 
 * @author Zoltan Luspai
 */

public class LogRegister implements Register {

	@Override
	public Object registerVariable(WorkflowContext context,
			WorkflowRunner entry, Map args,
			OsVariableService vservice) throws WorkflowException {
		// TODO Auto-generated method stub
		return null;
	}

}
